Files Short Code
The files widget can also be used as a short-code item. This short code can then be placed in any content area to pull in a set of files.
Short Code
Shortcode options are as follows:
| Option | Value | Description |
|---|---|---|
| display type | Text | |
| Display heading | Text | When used, this text will display as a heading above the file list |
| Container Class | Text | A class to be added to the file container |
| Button Class | Text | A class to be added to any buttons |
| Link Position | Text | Right / Left |
| Header Content | Text | The contents of any header |
| Is border | True / False | Should the file list contain a border |
| Anchor Name | Text | Text value for an anchor to the file elements |
| Order By policy number | True / False | Should the order of the files be by the policy |
| Cat | number | The category number of the files to be pulled in setting this to all will pull all files |
Example short code
The short-code below will pull in all files and display them in a list format.
[sc-fileList cat="68" displayType="table-name"]
file category
The file category is the ID of the category, this can be found by navigating to the file categories section and hovering over the category name. The ID will be displayed in the URL.
This will pull in all files from category 68 and display them in a table format sorted by name.
All options
- displaytype
- displayheading
- containerclass
- btnclass
- linkposition
- headercontent
- isborder
- anchorname
- orderbypolicy
- cat